package com.wmx.designMode.observer;

/**********************************
 * @author wmx
 * @date 2019/8/16 13:51
 * @description:
 * @version 1.0
 ************************************/
public abstract class AbsObserver {
    protected Subject subject;
    AbsObserver(Subject subject){
        this.subject =  subject;
        subject.register(this);
    }
    public abstract  void update();
}
